package com.ruoyi.flowable.mapper;

import com.ruoyi.flowable.domain.WfDeployForm;
import com.ruoyi.flowable.domain.vo.WfDeployFormVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 流程实例关联表单Mapper接口
 *
 * @author KonBAI
 * @createTime 2022/3/7 22:07
 */
@Mapper
public interface WfDeployFormMapper {

    int deleteById(String deployId);

    int insert(WfDeployForm deployForm);

    int deleteByDeployId(String deployId);

    WfDeployForm selectOneByDeployIdAndFormKeyAndNodeKey(@Param("deployId") String deployId,
                                                         @Param("formKey") String formKey,
                                                         @Param("nodeKey") String nodeKey);

    List<WfDeployFormVo> selectListByDeployIdAndFormKeyAndNodeKey(@Param("deployId") String deployId,
                                                                  @Param("formKey") String formKey,
                                                                  @Param("nodeKey") String nodeKey);

    boolean insertBatch(List<WfDeployForm> deployFormList);
}
